import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class ETaskGroup
    
    export  class ETaskGroup
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): ETaskGroup
        {
            return new ETaskGroup(arg1);
        }

        public static __read(arg1: SerializeStream): ETaskGroup
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 24) 
            {
                throw new MarshalException();
            }
            return ETaskGroup.convert(loc1);
        }

        public static /* const */_ETaskGroupMain: int=1;

        public static /* const */_ETaskGroupBranch: int=2;

        public static /* const */_ETaskGroupLoopBook: int=3;

        public static /* const */_ETaskGroupTransport: int=4;

        public static /* const */_ETaskGroupGuild: int=5;

        public static /* const */_ETaskGroupRunBusiness: int=6;

        public static /* const */_ETaskGroupKillEvil: int=7;

        public static /* const */_ETaskGroupSchool: int=8;

        public static /* const */_ETaskGroupCycle: int=9;

        public static /* const */_ETaskGroupTreasure: int=10;

        public static /* const */_ETaskGroupCopy: int=11;

        public static /* const */_ETaskGroupActive: int=12;

        public static /* const */_ETaskGroupFairyland: int=13;

        public static /* const */_ETaskGroupDaily: int=14;

        public static /* const */_ETaskGroupCampTreasure: int=15;

        public static /* const */_ETaskGroupWeakCamp: int=16;

        public static /* const */_ETaskGroupChangeCareer: int=17;

        public static /* const */_ETaskGroupLove: int=18;

        public static /* const */_ETaskGroupSecondCareer: int=19;

        public static /* const */_ETaskGroupDragon: int=20;

        public static /* const */_ETaskGroupCrossSea: int=21;

        public static /* const */_ETaskGroupCrossSpy: int=22;

        public static /* const */_ETaskGroupCrossMassacre: int=23;

        public /* var */__value: int;
    }
